//
//  TypeJinNangHeaderView.m
//  TravelYo
//
//  Created by lanou3g on 15/10/29.
//  Copyright © 2015年 TravelYo. All rights reserved.
//

#import "TypeJinNangHeaderView.h"

@interface TypeJinNangHeaderView ()

@property (nonatomic, assign) CGFloat selfWidth;


@property (nonatomic, assign) CGFloat selfHeight;


@end


@implementation TypeJinNangHeaderView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _selfWidth = frame.size.width;
        _selfHeight = frame.size.height;
        [self addSubViews];
    }
    return self;
}

- (void)addSubViews
{
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, _selfWidth / 2, _selfHeight)];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    _titleLabel.font = [UIFont systemFontOfSize:15];
    _titleLabel.alpha = 0.7;
    [self addSubview:_titleLabel];
    
}


@end
